package com.zygh.lz.stapprove;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
public class OutBean implements Serializable {

    private Integer code;
    private String message;
    private OutBeanData data;
    private String messageId;
    private String version;

    @Data
    public static class OutBeanData {

        private JSONObject page = JSONObject.parseObject( "{\"pageNo\": 1,\"pageSize\": 1,\"total\": 0}" );
        private List<FiledVal> dataList;

        @Data
        public static class FiledVal{

            private List<Val> fieldValues;

            @Data
            public static class Val{

                private String field = "json";
                private String value;
            }
        }
    }
}
